/**
 * 
 */
package jacek.kowalczyk.internal;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author kowalczy
 */
public class HelloWorld {

    private String name = "hello World";
    private int number;
    private String firstName;

    public HelloWorld() {
        super();
        number = 123;
        firstName = "Jacek";

    }

    private void whoAmI() {
        System.out.println(this.name);
        System.out.println(this.number);
        System.out.println(this.firstName);
    }

    private void printHostInfo() {
        Date today = new Date();
        DateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
        System.out.println(df.format(today));

        System.out.println(System.getenv("username"));
        System.out.println(System.getenv("userdomain"));
        System.out.println(System.getenv("OS"));
        System.out.println(System.getenv("computername"));
        System.out.println(System.getenv("userdnsdomain"));
        System.out.println(System.getenv("java_home"));
        System.out.println(System.getenv("homeshare"));
        System.out.println(System.getenv("logonserver"));

    }

//    private final static void method1(){
//        
//    }
    /**
     *@param args The input parameters
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        HelloWorld hw = new HelloWorld();
        hw.whoAmI();
        hw.printHostInfo();
        
        
        List<String> lista =  new ArrayList<String>();
        lista.add("jeden");
        lista.add("dwa");
        lista.add("trzy");
        
        System.out.println(lista);
        
        
        
        

    }

}
